<?php $theme_options = get_option('po_theme'); ?>
<form action="" enctype="multipart/form-data" method="post" class="themeform">
<input type="hidden" id="po_action" name="po_action" value="save">
<div class="icon32" id="icon-themes"><br></div>
<div class="wrap pb14"><h2>Theme Settings <input type="submit" class="button add-new-h2" value="Update" name="cp_save"/></h2></div>
<input type="text" name="tab" value="<?php echo $theme_options["tab"]; ?>" class="tab" size="5"  />

<div class="adminarea">

    <!-- tabs -->
    <ul class="tab-navigation">
        <li><a href="#general">General</a></li>
		<li><a href="#homepage">Homepage</a></li>
		<li><a href="#portfolio">Portfolio</a></li>
		<li><a href="#misc">Misc</a></li>
        <li><a href="#style">Style</a></li>
		<li><a href="#ads">Ads</a></li>
    </ul>
    <div class="clear" style="height:1%; border-top:3px solid #6d6d6d;"></div>

    <div id="tabbed-content">

   <!----------------------------------------------------------------------------
								G E N E R A L   P A G E
	----------------------------------------------------------------------------->
    <div id="general">

		<div id="adminbox"><span class="title">Logo</span>
		<div class="logo"><?php if ($theme_options["logo"]) { ?><img class="logo-img" src="<?php echo $theme_options["logo"] ?>" /><?php } ?></div>
		<span>Image URL</span>
		<input type="text" name="logo" value="<?php echo $theme_options["logo"] ?>" class="input size60" size="60" />
		Logo Type
		<select name="logo_type">
			<option value="Text" <?php if ($theme_options["logo_type"]=="Text"):?> selected <?php endif; ?>>Text</option>
			<option value="Image" <?php if ($theme_options["logo_type"]=="Image"):?> selected <?php endif; ?>>Image</option>
		</select>
		<small>e.q. http://yoursite.com/wp-content/uploads/logo.png. JPG, GIF or PNG format. Max width is 300px. Max height is 108px.</small>
		</div><!-- end adminbox -->

		<div id="adminbox"><span class="title">Favicon</span>
		<span>Image URL</span>
		<input type="text" name="favicon" value="<?php echo $theme_options["favicon"] ?>" class="input size60" size="60"  />
		<small>e.q. http://yoursite.com/wp-content/themes/theme/favicon.ico</small>
		</div><!-- end adminbox -->

		<div id="adminbox"><span class="title">Google Analytics</span>
		<span>Code</span>
		<textarea cols="70" rows="3" name="google_analytics" id="google_analytics" class="input" /><?php echo $theme_options["google_analytics"] ?></textarea>
		</div><!-- end adminbox -->

		<div id="adminbox"><span class="title">Copyrights</span>
		<span>Enter here</span>
		<textarea cols="70" rows="1" name="copyrights" id="copyrights" class="input" /><?php echo $theme_options["copyrights"] ?></textarea>
		<small>e.g. 2010 &copy; yoursite.com etc</small>
		<div class="clear h5"><!-- --></div>
		<span>Author's link</span>
		<select name="panda_link_display">
			<option value="Display" <?php if ($theme_options["panda_link_display"]=="Display"):?> selected <?php endif; ?>>display</option>
			<option value="Hide" <?php if ($theme_options["panda_link_display"]=="Hide"):?> selected <?php endif; ?>>remove</option>
		</select>
		<small>Would you like to keep an iKarina's link at footer? The&nbsp;rel=&quot;nofollow&quot; enabled.</small>
		</div><!-- end adminbox -->

   	</div><!-- end General -->

   <!----------------------------------------------------------------------------
								H O M E   P A G E
	----------------------------------------------------------------------------->
	<div id="homepage">
		<div id="featured_pages">
			<div id="adminbox"><span class="title">Drag&amp;Drop Gallery</span>
				<span>Source</span>
				<div class="radio2">
					<input type="radio" value="flickr" name="thumbs_source" id="thumbs_flickr" <?php if ($this->options["thumbs_source"]=="flickr"):?> checked="checked" <?php endif; ?>/><label for="thumbs_flickr">Flickr</label>-OR-&nbsp;&nbsp;
					<input type="radio" value="posts" name="thumbs_source" id="thumbs_posts" <?php if ($this->options["thumbs_source"]=="posts"):?> checked="" <?php endif; ?> /><label for="thumbs_posts">Featured posts</label>-OR-&nbsp;&nbsp;
					<input type="radio" value="none" name="thumbs_source" id="thumbs_none" <?php if ($this->options["thumbs_source"]=="none"):?> checked="" <?php endif; ?> /><label for="thumbs_none">None</label> 
				</div>
				<div class="clear h5"><!-- --></div>
				<small>Select a source of thumbnails.</small>
				<div class="clear h15"><!-- --></div>
			<div id="fp_options">
				<div id="featured_box_posts">
					<select name="featured_cat" id="featured_cat">
						<option value="none" <?php if ($theme_options["featured_cat"]=="none"):?> selected <?php endif; ?>>none</option>
						<?php $f_cats = get_categories('hide_empty=0'); 
						foreach ($f_cats as $featured_cat)
						:?>
						<option value="<?php echo $featured_cat->cat_ID ?>" <?php if ($this->options["featured_cat"]==$featured_cat->cat_ID):?> selected <?php endif; ?>>
						<?php echo $featured_cat->cat_name ; ?>
						</option>
						<?php endforeach; ?>
					</select>
					<small>Select a category of featured posts.</small>
				</div>

				<div id="featured_box_flickr">
					<select name="featured_flickr_source_type">
						<option value="user" <?php if ($theme_options["featured_flickr_source_type"]=="user"):?> selected <?php endif; ?>>User ID:</option>
						<option value="group" <?php if ($theme_options["featured_flickr_source_type"]=="group"):?> selected <?php endif; ?>>Group ID:&nbsp;</option>
					</select>
					<input type="text" name="featured_flickr" id="featured_flickr" value="<?php echo $theme_options["featured_flickr"] ?>" class="input" size="20" />
					Size of target photo is:
					<select name="flickr_target">
						<option value=".jpg" <?php if ($theme_options["flickr_target"]==".jpg"):?> selected <?php endif; ?>>Medium 500&nbsp;</option>
						<option value="_z.jpg" <?php if ($theme_options["flickr_target"]=="_z.jpg"):?> selected <?php endif; ?>>Medium 640</option>
						<option value="_b.jpg" <?php if ($theme_options["flickr_target"]=="_b.jpg"):?> selected <?php endif; ?>>Large 1024</option>
					</select>
					<small>Enter your Flickr ID (<a href="http://www.idgettr.com">idGettr</a>).</small>
				</div>

				<div class="clear h10"><!-- --></div>

				<span>Quantity</span>
				<input type="text" name="featured_qty" id="featured_qty" value="<?php echo $theme_options["featured_qty"] ?>" class="input" size="3" />
				<small>Enter a quantity of thumbs which will be displayed.</small>

				<div class="clear h10"><!-- --></div>

				<span>Sort</span>
				<select name="featured_sort">
					<option value="rand" <?php if ($theme_options["featured_sort"]=="rand"):?> selected <?php endif; ?>>by random&nbsp;</option>
					<option value="desc" <?php if ($theme_options["featured_sort"]=="desc"):?> selected <?php endif; ?>>by DESC</option>
				</select>
				<small>Select a kind of order.</small>

				<div class="clear h10"><!-- --></div>

				<span>Size</span>
				<select name="featured_thumbs_size">
					<option value="240" <?php if ($theme_options["featured_thumbs_size"]=="240"):?> selected <?php endif; ?>>Large 240</option>
					<option value="100" <?php if ($theme_options["featured_thumbs_size"]=="100"):?> selected <?php endif; ?>>Medium 100&nbsp;</option>
					<option value="75" <?php if ($theme_options["featured_thumbs_size"]=="75"):?> selected <?php endif; ?>>Small 75</option>
				</select>
				<small>Select a size of thumbs.</small>

				<div class="clear h10"><!-- --></div>

				<span>Rotation</span>
				<select name="featured_thumbs_rotation">
					<option value="yes" <?php if ($theme_options["featured_thumbs_rotation"]=="yes"):?> selected <?php endif; ?>>Yes, please.&nbsp;</option>
					<option value="no" <?php if ($theme_options["featured_thumbs_rotation"]=="no"):?> selected <?php endif; ?>>No, thanks.</option>
				</select>
				<small>Would you like to rotate thumbs?</small>
			</div>
			</div><!-- end adminbox -->

			<div id="adminbox"><span class="title">Custom Frontpage</span>
			<span>Select</span>
			<select name="frontpage" id="frontpage">
				<option value="none" <?php if ($this->options["frontpage"]=="none"):?> selected <?php endif; ?>>none</option>
				<?php $frontpages = get_pages(); 
				foreach ($frontpages as $page): ?>
				<option value="<?php echo $page->ID ?>" <?php if ($this->options["frontpage"]==$page->ID):?> selected <?php endif; ?>>
				<?php echo $page->post_title; echo "&nbsp;" ?></option>
				<?php endforeach; ?>
			</select>
			<small>Select the page which will be used as base of frontpage.</small>
			</div><!-- end adminbox -->

		</div>
   	</div><!-- end homepage -->
  

   <!----------------------------------------------------------------------------
								P O R T F O L I O   P A G E
	----------------------------------------------------------------------------->
    <div id="portfolio">

					<div id="swither">
					<input type="radio" value="disable" name="enable_portfolio" id="disable_portfolio" 
					<?php if ($this->options["enable_portfolio"]=="disable"):?> checked="checked" <?php endif; ?> /><label for="disable_portfolio">Disabled</label>
					<input type="radio" value="enable" name="enable_portfolio" id="enable_portfolio" 
					<?php if ($this->options["enable_portfolio"]=="enable"):?> checked="checked" <?php endif; ?>/><label for="enable_portfolio">Enabled</label>
					</div>

					<div style="height:34px; width:200px;"><!-- --></div>

					<div id="portfolio_box">
						<div id="adminbox"><span class="title">Portfolio</span>
						<span>Category</span>
						<select name="portfolio_cat" id="portfolio_cat">
							<option value="none" <?php if ($theme_options["portfolio_cat"]=="none"):?> selected <?php endif; ?>>none</option>
							<?php $p_cats = get_categories('hide_empty=0'); 
							foreach ($p_cats as $portfolio_cat)
							:?>
							<option value="<?php echo $portfolio_cat->cat_ID ?>" <?php if ($this->options["portfolio_cat"]==$portfolio_cat->cat_ID):?> selected <?php endif; ?>>
							<?php echo $portfolio_cat->cat_name ; ?>
							</option>
							<?php endforeach; ?>
						</select>
						<small>Select a category of portfolio.</small>
						<div class="clear h10"><!-- --></div>
						<span>Template</span>
						<select name="portfolio_posts_template">
							<option value="1-in-row" <?php if ($theme_options["portfolio_posts_template"]=="1-in-row"):?> selected <?php endif; ?>>1-in-row</option>
							<option value="2-in-row" <?php if ($theme_options["portfolio_posts_template"]=="2-in-row"):?> selected <?php endif; ?>>2-in-row</option>
							<option value="3-in-row" <?php if ($theme_options["portfolio_posts_template"]=="3-in-row"):?> selected <?php endif; ?>>3-in-row</option>
						</select>
						<small>Select a template which will be applied for portfolio archive.</small>
						</div><!-- end adminbox -->

					</div><!-- end box -->
					<div class="clear"><!-- --></div>

   	</div><!-- end portfolio -->


   <!----------------------------------------------------------------------------
								M I S C
	----------------------------------------------------------------------------->
	<div id="misc">

		    <ul class="tab-navigation tn3">
			<li class="active"><a href="#templates">Templates</a></li>
			<li><a href="#lifestream">Lifestream</a></li>
			<li><a href="#misc2">Misc</a></li>
		    </ul>
		    <div class="clear" style="height:1%; border-top:1px solid #6d6d6d;"><!-- --></div>

				<!---------- TEMPLATES ---------->
			    <div id="templates">

					<div style="height:14px; width:200px;"><!-- --></div>
        
					<div id="templatesbox">
						<div id="adminbox"><span class="title">Posts archives, Search results, Tags etc.</span>
						<span>Template</span>
						<select name="entries_template">
							<option value="default" <?php if ($theme_options["entries_template"]=="default"):?> selected <?php endif; ?>>Default</option>
							<option value="t1" <?php if ($theme_options["entries_template"]=="t1"):?> selected <?php endif; ?>>Template #1</option>
							<option value="t2" <?php if ($theme_options["entries_template"]=="t2"):?> selected <?php endif; ?>>Template #2</option>
							<option value="t3" <?php if ($theme_options["entries_template"]=="t3"):?> selected <?php endif; ?>>Template #3</option>
						</select>
						<small>Select a template which will be applied for posts archives, search results etc.</small>
						</div><!-- end adminbox -->
					</div><!-- end -->
					<div class="clear"><!-- --></div>
				</div><!-- end -->

				<!---------- LIFESTREAM ---------->
			    <div id="lifestream">
					<div id="swither">
					<input type="radio" value="disable" name="enable_lifestream" id="disable_lifestream" 
					<?php if ($this->options["enable_lifestream"]=="disable"):?> checked="checked" <?php endif; ?> /> Disabled&nbsp;&nbsp;
					<input type="radio" value="enable" name="enable_lifestream" id="enable_lifestream" 
					<?php if ($this->options["enable_lifestream"]=="enable"):?> checked="checked" <?php endif; ?>/> Enabled
					</div>

					<div style="height:34px; width:200px;"><!-- --></div>
        
					<div id="lifestreambox">
						<div id="adminbox"><span class="title">Lifestream</span>
						<p>Enter the URLs of your account in social networks. Enter your FeedBurner URL on RSS field.</p>
						<div class="lifebox">
						<input type="text" name="life_rss" value="<?php echo $theme_options["life_rss"] ?>" class="input life_rss" size="" />
						<input type="text" name="life_twitter" value="<?php echo $theme_options["life_twitter"] ?>" class="input life_twitter" size="" />
						<input type="text" name="life_deviantart" value="<?php echo $theme_options["life_deviantart"] ?>" class="input life_deviantart" size="" />
						<input type="text" name="life_digg" value="<?php echo $theme_options["life_digg"] ?>" class="input life_digg" size="" />
						<input type="text" name="life_facebook" value="<?php echo $theme_options["life_facebook"] ?>" class="input life_facebook" size="" />
						<input type="text" name="life_flickr" value="<?php echo $theme_options["life_flickr"] ?>" class="input life_flickr" size="" />
						<input type="text" name="life_lastfm" value="<?php echo $theme_options["life_lastfm"] ?>" class="input life_lastfm" size="" />
						<input type="text" name="life_linkedin" value="<?php echo $theme_options["life_linkedin"] ?>" class="input life_linkedin" size="" />
						<input type="text" name="life_myspace" value="<?php echo $theme_options["life_myspace"] ?>" class="input life_myspace" size="" />
						<input type="text" name="life_picasa" value="<?php echo $theme_options["life_picasa"] ?>" class="input life_picasa" size="" />
						<input type="text" name="life_reddit" value="<?php echo $theme_options["life_reddit"] ?>" class="input life_reddit" size="" />
						<input type="text" name="life_skype" value="<?php echo $theme_options["life_skype"] ?>" class="input life_skype" size="" />
						<input type="text" name="life_stumbleupon" value="<?php echo $theme_options["life_stumbleupon"] ?>" class="input life_stumbleupon" size="" />
						<input type="text" name="life_technorati" value="<?php echo $theme_options["life_technorati"] ?>" class="input life_technorati" size="" />
						<input type="text" name="life_youtube" value="<?php echo $theme_options["life_youtube"] ?>" class="input life_youtube" size="" />
						<input type="text" name="life_vimeo" value="<?php echo $theme_options["life_vimeo"] ?>" class="input life_vimeo" size="" />
						<input type="text" name="life_blogger" value="<?php echo $theme_options["life_blogger"] ?>" class="input life_blogger" size="" />
						<input type="text" name="life_delicious" value="<?php echo $theme_options["life_delicious"] ?>" class="input life_delicious" size="" />
						<input type="text" name="life_designfloat" value="<?php echo $theme_options["life_designfloat"] ?>" class="input life_designfloat" size="" />
						<input type="text" name="life_designmoo" value="<?php echo $theme_options["life_designmoo"] ?>" class="input life_designmoo" size="" />
						</div>
						</div><!-- end adminbox -->
					</div><!-- end -->
					<div class="clear"><!-- --></div>
				</div><!-- end -->


				<!---------- MISC #2 ---------->
			    <div id="misc2">
				
					<div style="height:14px; width:200px;"><!-- --></div>

					<div id="misc2box">
						<div id="adminbox"><span class="title">Sidebars</span>
						<span>Footer Sidebars</span>
						<select name="enable_footersidebars">
							<option value="enable" <?php if ($theme_options["enable_footersidebars"]=="enable"):?> selected <?php endif; ?>>Enable</option>
							<option value="disable" <?php if ($theme_options["enable_footersidebars"]=="disable"):?> selected <?php endif; ?>>Disable</option>
						</select>
						Select it if you'd like to display three sidebars at footer.
						<div class="clear h10"><!-- --></div>
						<span>Add Sidebars</span>
						<input type="text" name="additional_sidebars" value="<?php echo $theme_options["additional_sidebars"] ?>" class="input" size="3"  />
						Enter number of additional sidebars.
						<small>IMPORTANT! Don't set value less than the amount of used sidebars. This may lead to the loss of your data.</small>
						</div><!-- end adminbox -->

						<div id="adminbox"><span class="title">Miscellaneous</span>
						<span>Author info</span>
						<select name="enable_author_info">
							<option value="enable" <?php if ($theme_options["enable_author_info"]=="enable"):?> selected <?php endif; ?>>Enable</option>
							<option value="disable" <?php if ($theme_options["enable_author_info"]=="disable"):?> selected <?php endif; ?>>Disable</option>
						</select>
						Select it if you'd like to display <a href="http://en.gravatar.com/">Gravatar</a> and <a href="<?php get_option('home'); ?>/wp-admin/profile.php">author's bio</a> at post page.
						</div><!-- end adminbox -->

					</div><!-- end -->
					<div class="clear"><!-- --></div>
				</div><!-- end -->


   	</div><!-- end foo -->

   <!----------------------------------------------------------------------------
								S T Y L E   P A G E
	----------------------------------------------------------------------------->
    <div id="style">
		<div id="adminbox"><span class="title">Basic style</span>
		<p>Please select a basic style. All changes (below) will be applied to the chosen style.</p>
		<span>Select a style</span>
		<select name="style">
			<option value="default" <?php if ($theme_options["style"]=="default"):?> selected <?php endif; ?>>- default -</option>
			<option value="graylines" <?php if ($theme_options["style"]=="graylines"):?> selected <?php endif; ?>>Gray Lines </option>
			<option value="grisdeperle" <?php if ($theme_options["style"]=="grisdeperle"):?> selected <?php endif; ?>>Gris de Perle </option>
			<option value="lavender" <?php if ($theme_options["style"]=="lavender"):?> selected <?php endif; ?>>Lavender </option>
			<option value="bluebubbles" <?php if ($theme_options["style"]=="bluebubbles"):?> selected <?php endif; ?>>Blue Bubbles </option>
			<option value="linen" <?php if ($theme_options["style"]=="linen"):?> selected <?php endif; ?>>Linen </option>
			<option value="lightwood" <?php if ($theme_options["style"]=="lightwood"):?> selected <?php endif; ?>>Light Wood </option>
		</select>
		</div><!-- end adminbox -->

		<div id="adminbox"><span class="title">Layout</span>
		<p>Please set a primary color and pattern.</p>
		<span>Color</span>
		<input type="text" name="background_color" id="background_color" value="<?php echo $theme_options["background_color"] ?>" class="input" size="8" style="background-color:#<?php echo $theme_options["background_color"] ?>;" />
		<div class="clear h10"><!-- --></div>
		<span>Pattern</span>
		<select name="pattenr" id="pattern">
			<option value="none" <?php if ($theme_options["pattenr"]=="none"):?> selected <?php endif; ?>>none</option>
			<option value="vertical_lines" <?php if ($theme_options["pattenr"]=="vertical_lines"):?> selected <?php endif; ?> style="background-image:url(/wp-content/themes/polafolio/images/patterns/vertical_lines.png)">Vertical lines</option>
			<option value="vertical_lines_2" <?php if ($theme_options["pattenr"]=="vertical_lines_2"):?> selected <?php endif; ?> style="background-image:url(/wp-content/themes/polafolio/images/patterns/vertical_lines_2.png)">Vertical lines #2</option>
			<option value="noise" <?php if ($theme_options["pattenr"]=="noise"):?> selected <?php endif; ?> style="background-image:url(/wp-content/themes/polafolio/images/patterns/noise.png)">Noise</option>
			<option value="bubbles" <?php if ($theme_options["pattenr"]=="bubbles"):?> selected <?php endif; ?> style="background-image:url(/wp-content/themes/polafolio/images/patterns/bubbles.png)">Bubbles</option>
			<option value="bubbles_3" <?php if ($theme_options["pattenr"]=="bubbles_3"):?> selected <?php endif; ?> style="background-image:url(/wp-content/themes/polafolio/images/patterns/bubbles_3.png)">Bubbles #2</option>
			<option value="cells" <?php if ($theme_options["pattenr"]=="cells"):?> selected <?php endif; ?> style="background-image:url(/wp-content/themes/polafolio/images/patterns/cells.png)">Cells</option>
			<option value="wood" <?php if ($theme_options["pattenr"]=="wood"):?> selected <?php endif; ?> style="background-image:url(/wp-content/themes/polafolio/images/patterns/wood.png)">Wood</option>
			<option value="cross" <?php if ($theme_options["pattenr"]=="cross"):?> selected <?php endif; ?> style="background-image:url(/wp-content/themes/polafolio/images/patterns/cross.png)">Cross</option>
			<option value="paper" <?php if ($theme_options["pattenr"]=="paper"):?> selected <?php endif; ?> style="background-image:url(/wp-content/themes/polafolio/images/patterns/paper.png)">Paper</option>
		</select>
		Position
		<select name="background_image_position">
			<option value="top center" <?php if ($theme_options["background_image_position"]=="top center"):?> selected <?php endif; ?>>top center</option>
			<option value="top left" <?php if ($theme_options["background_image_position"]=="top left"):?> selected <?php endif; ?>>top left</option>
			<option value="top right" <?php if ($theme_options["background_image_position"]=="top right"):?> selected <?php endif; ?>>top right</option>
			<option value="bottom center" <?php if ($theme_options["background_image_position"]=="bottom center"):?> selected <?php endif; ?>>bottom center</option>
			<option value="bottom left" <?php if ($theme_options["background_image_position"]=="bottom left"):?> selected <?php endif; ?>>bottom left</option>
			<option value="bottom right" <?php if ($theme_options["background_image_position"]=="bottom right"):?> selected <?php endif; ?>>bottom right</option>
		</select>
		Tiling
		<select name="background_repeat">
			<option value="repeat-x" <?php if ($theme_options["background_repeat"]=="repeat-x"):?> selected <?php endif; ?>>repeat-x</option>
			<option value="repeat-y" <?php if ($theme_options["background_repeat"]=="repeat-y"):?> selected <?php endif; ?>>repeat-y</option>
			<option value="repeat" <?php if ($theme_options["background_repeat"]=="repeat"):?> selected <?php endif; ?>>repeat</option>
			<option value="no-repeat" <?php if ($theme_options["background_repeat"]=="no-repeat"):?> selected <?php endif; ?>>no-repeat</option>
		</select>
		<div class="clear h10"><!-- --></div>
		<span>Custom pattern</span>
		<input type="text" name="background_image" value="<?php echo $theme_options["background_image"] ?>" class="input size30" size="30"  />
		<small>e.q. http://yoursite.com/images/pattern.png</small>
		</div><!-- end adminbox -->

		<div id="adminbox"><span class="title">Menu</span>
		<span>Text of menu</span>
		<input type="text" name="menu_color" id="menu_color" value="<?php echo $theme_options["menu_color"] ?>" class="input" size="8" style="background-color:#<?php echo $theme_options["menu_color"] ?>;" />
		<div class="clear h10"><!-- --></div>
		<span>Text hover</span>
		<input type="text" name="menu_hover_color" id="menu_hover_color" value="<?php echo $theme_options["menu_hover_color"] ?>" class="input" size="8" style="background-color:#<?php echo $theme_options["menu_hover_color"] ?>;" />
		Background hover
		<input type="text" name="menu_hover_bg_color" id="menu_hover_bg_color" value="<?php echo $theme_options["menu_hover_bg_color"] ?>" class="input" size="8" style="background-color:#<?php echo $theme_options["menu_hover_bg_color"] ?>;" />
		<div class="clear h10"><!-- --></div>
		<span>Text selected</span>
		<input type="text" name="menu_selected_color" id="menu_selected_color" value="<?php echo $theme_options["menu_selected_color"] ?>" class="input" size="8" style="background-color:#<?php echo $theme_options["menu_selected_color"] ?>;" />
		Background selected
		<input type="text" name="menu_selected_bg_color" id="menu_selected_bg_color" value="<?php echo $theme_options["menu_selected_bg_color"] ?>" class="input" size="8" style="background-color:#<?php echo $theme_options["menu_selected_bg_color"] ?>;" />

		</div><!-- end adminbox -->

		<div id="adminbox"><span class="title">Titles</span>
		<span>Font family</span>
		<select name="titles_font">
			<option value="select" <?php if ($theme_options["titles_font"]=="select"):?> selected <?php endif; ?>>- select -</option>
			<option value="Lucida Grande" <?php if ($theme_options["titles_font"]=="Lucida Grande"):?> selected <?php endif; ?>>Lucida Grande</option>
			<option value="Arial" <?php if ($theme_options["titles_font"]=="Arial"):?> selected <?php endif; ?>>Arial</option>
			<option value="Tahoma" <?php if ($theme_options["titles_font"]=="Tahoma"):?> selected <?php endif; ?>>Tahoma</option>
			<option value="Verdana" <?php if ($theme_options["titles_font"]=="Verdana"):?> selected <?php endif; ?>>Verdana</option>
			<option value="Times New Roman" <?php if ($theme_options["titles_font"]=="Times New Roman"):?> selected <?php endif; ?>>Times New Roman</option>
			<option value="Georgia" <?php if ($theme_options["titles_font"]=="Georgia"):?> selected <?php endif; ?>>Georgia</option>
			<option value="QlassikBoldRegular" <?php if ($theme_options["titles_font"]=="QlassikBoldRegular"):?> selected <?php endif; ?>>Qlassik *</option>
			<option value="FertigoProRegular" <?php if ($theme_options["titles_font"]=="FertigoProRegular"):?> selected <?php endif; ?>>Fertigo *</option>
			<option value="ColaborateLight" <?php if ($theme_options["titles_font"]=="ColaborateLight"):?> selected <?php endif; ?>>Colaborate *</option>
		</select>
		* - Cufon
		<div class="clear h10"><!-- --></div>
		<span>H1</span>
		<input type="text" name="h1_color" id="h1_color" value="<?php echo $theme_options["h1_color"] ?>" class="input" size="8" style="background-color:#<?php echo $theme_options["h1_color"] ?>;" /> Website title
		<div class="clear h10"><!-- --></div>
		<span>H2..H6</span>
		<input type="text" name="titles_color" id="titles_color" value="<?php echo $theme_options["titles_color"] ?>" class="input" size="8" style="background-color:#<?php echo $theme_options["titles_color"] ?>;" /> Posts titles
		</div><!-- end adminbox -->

		<div id="adminbox"><span class="title">Content</span>
		<span>Font family</span>
		<select name="font">
			<option value="select" <?php if ($theme_options["font"]=="select"):?> selected <?php endif; ?>>- select -</option>
			<option value="Lucida Grande" <?php if ($theme_options["font"]=="Lucida Grande"):?> selected <?php endif; ?>>Lucida Grande</option>
			<option value="Arial" <?php if ($theme_options["font"]=="Arial"):?> selected <?php endif; ?>>Arial</option>
			<option value="Tahoma" <?php if ($theme_options["font"]=="Tahoma"):?> selected <?php endif; ?>>Tahoma</option>
			<option value="Verdana" <?php if ($theme_options["font"]=="Verdana"):?> selected <?php endif; ?>>Verdana</option>
			<option value="Times New Roman" <?php if ($theme_options["font"]=="Times New Roman"):?> selected <?php endif; ?>>Times New Roman</option>
			<option value="Georgia" <?php if ($theme_options["font"]=="Georgia"):?> selected <?php endif; ?>>Georgia</option>
		</select>
		<div class="clear h10"><!-- --></div>
		<span>Links</span>
		<input type="text" name="links_color" id="links_color" value="<?php echo $theme_options["links_color"] ?>" class="input" size="8" style="background-color:#<?php echo $theme_options["links_color"] ?>;" />
		Links hover
		<input type="text" name="links_hover_color" id="links_hover_color" value="<?php echo $theme_options["links_hover_color"] ?>" class="input" size="8" style="background-color:#<?php echo $theme_options["links_hover_color"] ?>;" />
		</div><!-- end adminbox -->

		<div id="adminbox"><span class="title">Custom CSS</span>
		<span>Code</span>
		<textarea cols="70" rows="10" name="custom_css" id="custom_css" class="input" /><?php echo $theme_options["custom_css"] ?></textarea>
		<small>e.q. .newclass { color:#336699; height:50px; }</small>
		</div><!-- end adminbox -->

 	</div><!-- end style -->   

   <!----------------------------------------------------------------------------
								A D S   P A G E
	----------------------------------------------------------------------------->
    <div id="ads">
		<div id="adminbox"><span class="title">Ads 300x250</span>
		<span>AdSense</span>
		<textarea cols="70" rows="3" name="adsense300" id="adsense300" class="input" /><?php echo $theme_options["adsense300"] ?></textarea>
		<small>Enter your adsense code (or other ad network code) here.</small>
		<div class="clear h10"><!-- --></div>
		<div class="ad-preview300"><a href="<?php echo $theme_options["target300"] ?>" target="_blank"><img src="<?php echo $theme_options["image300"] ?>" alt=""/></a></div>
		<span>Image URL</span>
		<input type="text" name="image300" value="<?php echo $theme_options["image300"] ?>" class="input size30" size="30"  />
		<small>Enter the URL for this banner ad.</small>
		<div class="clear h5"><!-- --></div>
		<span>Target URL</span>
		<input type="text" name="target300" value="<?php echo $theme_options["target300"] ?>" class="input size30" size="30"  />
		<small>Enter the URL where this banner <br>ad points to.</small>
		<div class="clear" style="height:150px;"><!-- --></div>
		</div><!-- end adminbox -->

		<?php // ADS #1 ?>
		<div id="adminbox"><span class="title">Ads 125x125</span>
		<div class="ad-preview125"><a href="<?php echo $theme_options["target125_1"] ?>" target="_blank"><img src="<?php echo $theme_options["image125_1"] ?>" alt=""/></a></div>
		<span>Image URL</span>
		<input type="text" name="image125_1" value="<?php echo $theme_options["image125_1"] ?>" class="input size60" size="60"  />
		<small>Enter the URL for this banner ad.</small>
		<div class="clear h5"><!-- --></div>
		<span>Target URL</span>
		<input type="text" name="target125_1" value="<?php echo $theme_options["target125_1"] ?>" class="input size60" size="60"  />
		<small>Enter the URL where this banner ad points to.</small>
		<div class="clear h5"><!-- --></div>
		<span>Banner</span>
		<select name="ads125_1">
			<option value="Disabled" <?php if ($theme_options["ads125_1"]=="Disabled"):?> selected <?php endif; ?>>Disabled</option>
			<option value="Enabled" <?php if ($theme_options["ads125_1"]=="Enabled"):?> selected <?php endif; ?>>Enabled</option>
		</select>
		<div class="clear h10"><!-- --></div>
		</div><!-- end adminbox -->

		<?php // ADS #2 ?>
		<div id="adminbox"><span class="title">Ads 125x125</span>
		<div class="ad-preview125"><a href="<?php echo $theme_options["target125_2"] ?>" target="_blank"><img src="<?php echo $theme_options["image125_2"] ?>" alt=""/></a></div>
		<span>Image URL</span>
		<input type="text" name="image125_2" value="<?php echo $theme_options["image125_2"] ?>" class="input size60" size="60"  />
		<small>Enter the URL for this banner ad.</small>
		<div class="clear h5"><!-- --></div>
		<span>Target URL</span>
		<input type="text" name="target125_2" value="<?php echo $theme_options["target125_2"] ?>" class="input size60" size="60"  />
		<small>Enter the URL where this banner ad points to.</small>
		<div class="clear h5"><!-- --></div>
		<span>Banner</span>
		<select name="ads125_2">
			<option value="Disabled" <?php if ($theme_options["ads125_2"]=="Disabled"):?> selected <?php endif; ?>>Disabled</option>
			<option value="Enabled" <?php if ($theme_options["ads125_2"]=="Enabled"):?> selected <?php endif; ?>>Enabled</option>
		</select>
		<div class="clear h10"><!-- --></div>
		</div><!-- end adminbox -->

		<?php // ADS #3 ?>
		<div id="adminbox"><span class="title">Ads 125x125</span>
		<div class="ad-preview125"><a href="<?php echo $theme_options["target125_3"] ?>" target="_blank"><img src="<?php echo $theme_options["image125_3"] ?>" alt=""/></a></div>
		<span>Image URL</span>
		<input type="text" name="image125_3" value="<?php echo $theme_options["image125_3"] ?>" class="input size60" size="60"  />
		<small>Enter the URL for this banner ad.</small>
		<div class="clear h5"><!-- --></div>
		<span>Target URL</span>
		<input type="text" name="target125_3" value="<?php echo $theme_options["target125_3"] ?>" class="input size60" size="60"  />
		<small>Enter the URL where this banner ad points to.</small>
		<div class="clear h5"><!-- --></div>
		<span>Banner</span>
		<select name="ads125_3">
			<option value="Disabled" <?php if ($theme_options["ads125_3"]=="Disabled"):?> selected <?php endif; ?>>Disabled</option>
			<option value="Enabled" <?php if ($theme_options["ads125_3"]=="Enabled"):?> selected <?php endif; ?>>Enabled</option>
		</select>
		<div class="clear h10"><!-- --></div>
		</div><!-- end adminbox -->

		<?php // ADS #4 ?>
		<div id="adminbox"><span class="title">Ads 125x125</span>
		<div class="ad-preview125"><a href="<?php echo $theme_options["target125_4"] ?>" target="_blank"><img src="<?php echo $theme_options["image125_4"] ?>" alt=""/></a></div>
		<span>Image URL</span>
		<input type="text" name="image125_4" value="<?php echo $theme_options["image125_4"] ?>" class="input size60" size="60"  />
		<small>Enter the URL for this banner ad.</small>
		<div class="clear h5"><!-- --></div>
		<span>Target URL</span>
		<input type="text" name="target125_4" value="<?php echo $theme_options["target125_4"] ?>" class="input size60" size="60"  />
		<small>Enter the URL where this banner ad points to.</small>
		<div class="clear h5"><!-- --></div>
		<span>Banner</span>
		<select name="ads125_4">
			<option value="Disabled" <?php if ($theme_options["ads125_4"]=="Disabled"):?> selected <?php endif; ?>>Disabled</option>
			<option value="Enabled" <?php if ($theme_options["ads125_4"]=="Enabled"):?> selected <?php endif; ?>>Enabled</option>
		</select>
		<div class="clear h10"><!-- --></div>
		</div><!-- end adminbox -->

		<?php // ADS #5 ?>
		<div id="adminbox"><span class="title">Ads 125x125</span>
		<div class="ad-preview125"><a href="<?php echo $theme_options["target125_5"] ?>" target="_blank"><img src="<?php echo $theme_options["image125_5"] ?>" alt=""/></a></div>
		<span>Image URL</span>
		<input type="text" name="image125_5" value="<?php echo $theme_options["image125_5"] ?>" class="input size60" size="60"  />
		<small>Enter the URL for this banner ad.</small>
		<div class="clear h5"><!-- --></div>
		<span>Target URL</span>
		<input type="text" name="target125_5" value="<?php echo $theme_options["target125_5"] ?>" class="input size60" size="60"  />
		<small>Enter the URL where this banner ad points to.</small>
		<div class="clear h5"><!-- --></div>
		<span>Banner</span>
		<select name="ads125_5">
			<option value="Disabled" <?php if ($theme_options["ads125_5"]=="Disabled"):?> selected <?php endif; ?>>Disabled</option>
			<option value="Enabled" <?php if ($theme_options["ads125_5"]=="Enabled"):?> selected <?php endif; ?>>Enabled</option>
		</select>
		<div class="clear h10"><!-- --></div>
		</div><!-- end adminbox -->

		<?php // ADS #6 ?>
		<div id="adminbox"><span class="title">Ads 125x125</span>
		<div class="ad-preview125"><a href="<?php echo $theme_options["target125_6"] ?>" target="_blank"><img src="<?php echo $theme_options["image125_6"] ?>" alt=""/></a></div>
		<span>Image URL</span>
		<input type="text" name="image125_6" value="<?php echo $theme_options["image125_6"] ?>" class="input size60" size="60"  />
		<small>Enter the URL for this banner ad.</small>
		<div class="clear h5"><!-- --></div>
		<span>Target URL</span>
		<input type="text" name="target125_6" value="<?php echo $theme_options["target125_6"] ?>" class="input size60" size="60"  />
		<small>Enter the URL where this banner ad points to.</small>
		<div class="clear h5"><!-- --></div>
		<span>Banner</span>
		<select name="ads125_6">
			<option value="Disabled" <?php if ($theme_options["ads125_6"]=="Disabled"):?> selected <?php endif; ?>>Disabled</option>
			<option value="Enabled" <?php if ($theme_options["ads125_6"]=="Enabled"):?> selected <?php endif; ?>>Enabled</option>
		</select>
		<div class="clear h10"><!-- --></div>
		</div><!-- end adminbox -->

 	</div><!-- end ads --> 
    
</div>               
<p class="submit align-center"><input type="submit" class="button-primary" value="Update" name="cp_save"/></p>
</div><!-- end adminarea -->
<p class="credits">
Date: November 10th, 2010<br />
The Polafolio theme by <a href="http://pandathemes.com/">pandathemes.com</a> 
</p>
</form>
<script type="text/javascript">
/* nanotabs ~ Sean Catchpole - Version 0.9 - MIT/GPL */
(function(){

  var gc = function(s){ return document.getElementsByClassName(s); };
  if(!document.getElementsByClassName) {
    var all = document.getElementsByTagName('*');
    gc = function(c){
      var e=[]; c=' '+c+' ';
      for(var i=0; i<all.length; i++)
        if((' '+all[i].className+' ').indexOf(c)>=0)
          e.push(all[i]);
      return e;
    }
  }

  var w = function(id){ var d; return (d=document.getElementById(id))&&[d]||gc(id); },
  bind = function(f){ var self=this; return function(){ return f.apply(self, arguments); }; },
  map = function(f,e,a) { for(var i=0; i<e.length; i++) f.apply(e[i],a||[]); },
  add = function(c) { this.className += c; },
  remove = function(c) { this.className = this.className.replace(new RegExp("(^|\\s)" + c + "(\\s|$)",'g'),''); } ,
  hide = function() { this.style.display="none"; },
  show = function() { this.style.display="block"; };

  var tab = function(id,a,e,s) {
    map(remove,a,[s.s]);
    add.call(this,s.s);
    map(hide,e);
    map(show,w(id));
  }

  nanotabs = function(s){
    var i, s=s||{}, o="cesdf".split(''); 
    for(i in o) s[o[i]]=s[o[i]]||nanotabs.settings[o[i]];
    var c=w(s.c), f=function(){
      var t=this,o=t[0],a=[t[1],t[2],t[3],t[4]];
      if( !s.f || s.f.apply(o,a)!==false ) tab.apply(o,a);
      return false;
    }
    for(i=0; i<c.length; i++) {
      var x=0, e=[], a=[], h=[], t=c[i].getElementsByTagName("a");
      for(var j=0; j<t.length; j++)
        if(t[j].href.match(/#/)) {
          h.push(t[j].href.split('#')[1]);
          if(typeof s.d=="string" && h[x]==s.d) s.d=x;
          a.push(t[j]);
          var g = w(h[x]);
          for(var k=0; k<g.length; k++) e.push(g[k]);
          x++;
        }
      for(var j=0; j<a.length; j++)
        a[j]['on'+s.e] = bind.call([a[j],h[j],a,e,s],f);
      if(typeof s.d=="number" && s.d>=0) tab.call(a[s.d],h[s.d],a,e,s);
    }
  }

  nanotabs.settings = { c:"idTabs", e:"click", s:"active", d:<?php if ($theme_options["tab"]<>"") {echo $theme_options["tab"];} else {echo '0';} ?>, f:false };
  nanotabs();
})();
</script>